package com.demo.entity.po;

import java.io.Serializable;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description:
 * @Date:2025-03-11
 * @author：author
*/
public class DeviceApply implements Serializable {

	/**
	 * 申请ID
	 */
	private Integer deviceApplyId;

	/**
	 * 申请理由
	 */
	private String borrowReason;

	/**
	 * 承诺归还时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date promiseTime;

	/**
	 * 使用者申请时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date applyTime;

	/**
	 * 管理员授权时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date grantTime;

	/**
	 * 使用者归还时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date returnTime;

	/**
	 * 管理员归档时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date finishTime;

	/**
	 * 申请状态待审批','已通过','已拒绝','已归还','超期未还
	 */
	private Integer status;

	/**
	 * 申请的设备
	 */
	private Integer deviceId;

	/**
	 * 申请人
	 */
	private Integer userId;

	private String userName;

	private String deviceName;


	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public void setDeviceApplyId(Integer deviceApplyId) {
		this.deviceApplyId = deviceApplyId;
	}

	public Integer getDeviceApplyId() {
		return this.deviceApplyId;
	}

	public void setBorrowReason(String borrowReason) {
		this.borrowReason = borrowReason;
	}

	public String getBorrowReason() {
		return this.borrowReason;
	}

	public void setPromiseTime(Date promiseTime) {
		this.promiseTime = promiseTime;
	}

	public Date getPromiseTime() {
		return this.promiseTime;
	}

	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}

	public Date getApplyTime() {
		return this.applyTime;
	}

	public void setGrantTime(Date grantTime) {
		this.grantTime = grantTime;
	}

	public Date getGrantTime() {
		return this.grantTime;
	}

	public void setReturnTime(Date returnTime) {
		this.returnTime = returnTime;
	}

	public Date getReturnTime() {
		return this.returnTime;
	}

	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}

	public Date getFinishTime() {
		return this.finishTime;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setDeviceId(Integer deviceId) {
		this.deviceId = deviceId;
	}

	public Integer getDeviceId() {
		return this.deviceId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getUserId() {
		return this.userId;
	}

	@Override
	public String toString() {
		return "申请ID:" + deviceApplyId + ",申请理由:" + borrowReason + ",承诺归还时间:" + promiseTime + ",使用者申请时间:" + applyTime + ",管理员授权时间:" + grantTime + ",使用者归还时间:" + returnTime + ",管理员归档时间:" + finishTime + ",申请状态待审批','已通过','已拒绝','已归还','超期未还:" + status + ",申请的设备:" + deviceId + ",申请人:" + userId + "";
	}

}